package com.example.vv.res.net;

import java.util.Map;

import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.Response;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Url;

public interface RequestInterface {
    @FormUrlEncoded
    @POST
    Observable<ResponseBody> POST_API(@Url String url, @FieldMap Map<String,String> map);

    @GET
    Observable<ResponseBody> GET_API(@Url String api);

    @POST
    Observable<ResponseBody> POST_API(@Url String api);

    @GET("api/bing_pic")
    Observable<ResponseBody> GET_API();
}
